public abstract class TugOfWarSensor {

	private int mostRecentValue;
	private RopeState rs;

	public TugOfWarSensor(RopeState rs) {
		this.rs = rs;	
	}

	public int getSensorValue() {
		return this.mostRecentValue;
	}

	public void setSensorValue(int newValue) {
		if (newValue < 10) {
			rs.setMyForce(0);
			mostRecentValue = 0;
		} else {			
			rs.setMyForce(newValue);
			mostRecentValue = newValue;
		}	
	}

	public abstract void initialize();


}
